﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Easy.Model;

namespace Easy.Operation
{
    public class EntityMap
    {
        public string EntityMapId { get; set; }
        public string EntityName { get; set; }
        public string EntityDisplayName { get; set; }
        public string Desc { get; set; }
        public string CreatedOn { get; set; }
        public string type { get; set; }
    }


    public class AddEntityClass
    {

        public string EntityName { get; set; }
        public string EntityDisplayName { get; set; }
        public string Desc { get; set; }
    }

    public class UpdateEntityClass
    {
        public string EntityId { get; set; }
        public string EntityDisplayName { get; set; }
        public string Desc { get; set; }
    }


    public class AttributeMap
    {
        public string AttributeMapId { get; set; }
        public string name { get; set; }
        public string DisplayName { get; set; }

        public string CreatedOn { get; set; }

        public string type { get; set; }
        public string length { get; set; }

        public string Cansearchable { get; set; }
        public string IsNullable { get; set; }

        public string picklistvalue { get; set; }
        public string lookupentity { get; set; }

        public string IsGlobalPicklist { get; set; }
        public string GlobalPicklist { get; set; }

        //4.20增加IsSystemAtt
        public string IsSystemAtt { get; set; }

        //kyzhao 6.13 EntityName 记录字段来自对应实体
        public string EntityName { get; set; }

        //yincl 记录链接字段来自对应实体
        public string LinkEntityName { get; set; }
        //yincl 记录链接字段来自对应实体的字段名
        public string LinkAttributeName { get; set; }
    }


    public class AddAttributeClass
    {
        public string EntityId { get; set; }
        public string name { get; set; }
        public string DisplayName { get; set; }


        public string type { get; set; }
        public string length { get; set; }

        public string Cansearchable { get; set; }
        public string IsNullable { get; set; }

        public string picklistvalue { get; set; }

        public string lookupentity { get; set; }

        public string IsGlobalPicklist { get; set; }
        public string GlobalPicklist { get; set; }
    }

    public class UpdateAttributeClass
    {
        public string AttributeId { get; set; }
        public string DisplayName { get; set; }

        public string Cansearchable { get; set; }
        public string IsNullable { get; set; }

        public string picklistvalue { get; set; }
    }

    public class GlobalPicklistClass
    {
        public string GlobalOptionId { get; set; }
        public string Name { get; set; }

        public string DisplayName { get; set; }

        public string picklistvalue { get; set; }
    }

    public class RelationMapClass
    {
        public string RelationMapId { get; set; }
        public string RelationEntity { get; set; }
        public string EntityDisplayName { get; set; }
        public string RelationName { get; set; }

    }

    public class AddRelationClass
    {
        public string EntityName1 { get; set; }
        public string EntityName2 { get; set; }
        public string RelationName { get; set; }

    }

    public class ViewMapClass
    {

        public string EntityId { get; set; }
        public string Name { get; set; }
        public string DisplayName { get; set; }
        public string viewAttvalue { get; set; }
        public string ViewFilter { get; set; }
        public string ViewAdditionalJs { get; set; }
        public string ViewIsDisplay { get; set; } //addby:kyzhao 视图是否显示
        public string ViewAttProcedure { get; set; } //addby:kyzhao 视图字段对应存储过程
        public string ViewClientType { get; set; } //addby:kyzhao 视图类型
        public string ViewTemplete { get; set; } //addby:kyzhao Templete
        public List<JsList> ViewJsList { get; set; } //addby:yqzhang ViewJsList
    }

    public class FormClass
    {
        public string FormId { get; set; }
        public string FormName { get; set; }
        public string DisplayName { get; set; }
        public string FormHtml { get; set; }
        public string EntityName { get; set; }
        public int FormType { get; set; }
    }
}